package cn.cyl.user.mapper;

import cn.cyl.basic.mapper.BaseMapper;
import cn.cyl.user.domain.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cyl
 * @since 2023-02-07
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 手机注册
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 邮件注册
     * @param email
     * @return
     */
    User loadByEmail(String email);

    /**
     * 点击邮件激活
     * @param email
     * @return
     */
    User active(String email);

    /**
     * 查询发布寻主消息的用户
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}
